package com.rightsidetech.user.mapper;

import com.rightsidetech.user.dtos.response.LoginResponse;
import com.rightsidetech.user.entity.UsUserWechatInfo;
import org.apache.ibatis.annotations.Param;

public interface UsUserWechatInfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UsUserWechatInfo record);

    int insertSelective(UsUserWechatInfo record);

    UsUserWechatInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UsUserWechatInfo record);

    int updateByPrimaryKey(UsUserWechatInfo record);

    LoginResponse selectByOpenId(@Param("openid") String openid);

    UsUserWechatInfo findOpenid(@Param("openid") String openid);

    String findForOpenId(@Param("userInfoId") Long userInfoId);
}